all : *.[ch]
	bison -d --report=all java7.y
	bison -d --report=all java-stub.y
	./build_wtname.sh
	gcc -Wall -g -std=c99 -lz -lpolarssl -o chunk_composer chunk_composer.c adler32.c types.c composer.c lgwseq.c java7.tab.c parse_file.c map_list.c header.c proto_id.c str_id.c type_id.c type_list.c unresolved_type.c

debian_install_zlib : 
	sudo apt install zlib1g-dev

debian_install_polarssl :
	sudo apt install libpolarssl-dev

stub_base_lib :
	bash scandoc.sh
